<!--
 * 用户积分管理模板
 * 作者：王勇程 (laughskydragon@qq.com)
-->
<form action="{:url()}" method="post" class="form_single">
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">用户积分管理</h3>
        </div>
        <div class="box-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label>用户昵称</label>
                        <p class="form-control-static">{$info.nickname|default='-'}</p>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label>手机号</label>
                        <p class="form-control-static">{$info.mobile|default='-'}</p>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label>当前积分</label>
                        <p class="form-control-static">{$info.points|default=0}</p>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label>操作类型</label>
                        <span>（选择积分操作类型）</span>
                        <select class="form-control" name="operation_type">
                            <option value="add">增加积分</option>
                            <option value="reduce">减少积分</option>
                            <option value="set">设置积分</option>
                        </select>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label>积分数量</label>
                        <span>（输入要操作的积分数量）</span>
                        <input class="form-control" name="points" placeholder="请输入积分数量" type="number" min="0">
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label>操作原因</label>
                        <span>（积分变动原因）</span>
                        <select class="form-control" name="reason">
                            <option value="admin_adjust">管理员调整</option>
                            <option value="reward">奖励</option>
                            <option value="penalty">惩罚</option>
                            <option value="refund">退款</option>
                            <option value="other">其他</option>
                        </select>
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="form-group">
                        <label>操作说明</label>
                        <textarea class="form-control" name="remark" placeholder="请输入操作说明" rows="3"></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="box-footer">
            <input type="hidden" name="id" value="{$info.id|default='0'}"/>
            {include file="layout/edit_btn_group"/}
        </div>
    </div>
</form>